package cn.gp.usercenter.service;


import cn.gp.usercenter.model.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;

/**
* @author HeGuoping
* @description 针对表【user(用户表)】的数据库操作Service
* @createDate 2024-11-05 09:50:58
*/
public interface UserService extends IService<User> {

    /**
     * @Param userAccount 用户账户
     * @Param userPassword 用户密码
     * @Param checkPassword 校验密码
     * @Return long 新用户id
     * @Description 用户注册
     * @Author He Guoping
     * @Date 2024/11/5 11:23
     */
    long userRegistry(String userAccount, String userPassword, String checkPassword);

    /**
     * @Param userAccount 用户账户
     * @Param userPassword 用户密码
     * @Return cn.gp.usercenter.model.User
     * @Description 用户登录
     * @Author He Guoping
     * @Date 2024/11/5 14:09
     */
    User userLogin(String userAccount, String userPassword, HttpServletRequest request);
    User getSafetyUser(User user);

}
